package com.game.element.hp
{
	import flash.display.Shape;
	
	public class ReloadBar extends Shape
	{
		public var length:int = 30;
		public function ReloadBar()
		{
			super();
		}
		
		public function setValue(current:Number ,total:Number):void{
			this.graphics.clear();
			this.graphics.beginFill(0xFFFFFF,1);
			this.graphics.drawRect(0,0,length,4);
			this.graphics.endFill();
			
			this.graphics.beginFill(0x00FF00,1);
			this.graphics.drawRect(0,0,(length*current/total),4);
			this.graphics.endFill();
		}
	}
}